<template>
	<view>
		<its-calendar :sta_num="10" :end_num="18" :int_num="15" @getTime="TimeData"></its-calendar>
	</view>
</template>
<script>
	import {
		mapState,
		mapMutations
	} from 'vuex';
	import itsCalendar from '@/components/its-calendar/its-calendar.vue';
	export default {
		components: {
			itsCalendar
		},
		methods: {
			...mapMutations(['setReserveTime']),
			// 时间段数据
			TimeData(e) {
				console.log(e)
				this.setReserveTime(e)
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>
